#pragma once
#include "stdafx.h"
class MaterialDesc
	:public GameResource
{
public:
	string DiffuseMapName, NormalMapName, SpecularMapName;
};
class Material :
	public GameResource
{
public:
	Material(GameResourceDesc &desc):GameResource(desc){};
	Material(MaterialDesc&);
	~Material(void);
	sptr<GameResource> DiffuseMap, NormalMap, SpecularMap;
	Vec3 SpecularColor;
	float Shininess;
	virtual void LoadFromFile();
	virtual void SaveToFile();
private:
	void LoadDesc(MaterialDesc&);
};

